//
body {
    background-color: #f3f3f3;
}


// 顶部导航
.nav {

    height: 30px;
    line-height: 30px;
    background-color: #D9D9D9;

    .left_address {
        height: 30px;
    }

    li {
        position: relative;
        padding: 0 14px;


        &:last-child {
            padding-right: 0;
        }

        &:nth-child(n):hover {
            background-color: rgb(219, 219, 219);
        }

        &:hover .nav_second {
            display: block;

        }

        .iconfont {
            font-size: 14px;

        }
    }

    .line {
        width: 2px;
        height: 12px;
        float: left;
        background-color: #999;
        //解决问题：li标签的左右padding会影响li标签的宽度，导致li标签的宽度不一致，导致li标签的间距不一致
        padding: 0;
        //box-sizing: border-box;这个只能小范围修改，在这里用稍微差点意思
        // box-sizing: border-box;
        margin-top: 10px;

    }

    //二级导航
    .nav_second {
        position: absolute;
        z-index: 3;
        width: 300px;
        height: 150px;
        top: 30px;
        left: 0;
        // right:;
        background-color: rgb(219, 219, 219);
        padding: 15px;
        box-sizing: border-box;
        display: none;

        a {
            padding: 15px;
        }

    }

}

//搜索栏 banner
.banner {
    height: 132px;
    background-color: #fff;
    box-shadow: 0 6px 6px 0 #cacaca3F;

    .banner_left {
        width: 190px;
        height: 130px;
        box-sizing: border-box;

    }

    //中间搜索区域
    .banner_middle {
        width: 690px;
        height: 132px;
        padding-top: 20px;
        box-sizing: border-box;

        //搜索框
        .banner_middle_top {
            position: relative;
            border: 1px solid #DD302D;
            float: left;

            input[type="text"] {
                width: 510px;
                height: 36px;
                float: left;
                padding-left: 10px;
                box-sizing: border-box;
            }

            input[type="button"] {
                float: left;
                width: 80px;
                height: 36px;
                background-color: #DD302D;
            }

            .icon-search {
                position: absolute;
                right: 30px;
                top: 50%;
                margin-top: -8px;
                color: #fff;
            }
        }

        //购物车
        .car {
            width: 90px;
            height: 36px;
            border: 1px solid #DD302D;
            text-align: center;
            line-height: 36px;
            margin-left: 5px;
            float: left;
            color: #DD302D;


        }

        //热门搜索
        .hot_words {
            padding-top: 10px;

            a {
                margin-right: 10px;
            }
        }

        //主题导航
        .main_nav {
            margin-top: 20px;
            font-size: 16px;
            color: #666;
            font-weight: 900;

            li {
                margin-right: 10px;

                &:hover a {
                    color: orangered;
                }
            }

        }
    }
}

//主体区域
.main_body {
    // background-color: pink;
    margin-top: 16px;

    //广告区
    .ad_banner {

        // 左侧列表
        .left_aside {
            width: 190px;
            height: 458px;
            background-color: #fff;
            padding-top: 5px;

            li {
                position: relative;
                height: 28px;
                line-height: 28px;
                padding-left: 16px;

                &:hover {
                    background-color: orangered;
                }

                &:hover p {
                    color: white;
                }

                &:hover .seconds_nav {
                    display: block;
                }

                a {
                    color: #333;
                    font-weight: 700;
                }

                .seconds_nav {
                    position: absolute;
                    background-color: orangered;
                    width: 550px;
                    height: 460px;
                    left: 190px;
                    top: -5px;
                    padding-left: 50px;
                    display: none;

                }

                .seconds_nav:hover {}



            }

        }

        // 中间广告图片
        .middle_img {
            margin: 0 10px;

        }

        // 右侧广告图片
        .right_ad {
            width: 190px;

            img {
                margin-top: 10px;
            }

            :nth-child(1) img {
                margin-top: 0px;
            }



        }

        //用户中心

        .user_center {
            width: 190px;
            height: 458px;
            background-color: #fff;
            // padding-left: 10px;
            margin-left: 10px;
            box-sizing: border-box;

            //用户信息
            .user_msg {
                width: 150px;
                height: 84px;
                border-bottom: 2px solid #ccc;
                margin: 25px auto 0;

                //头像和登录|注册
                .top_user {

                    img {
                        float: left;
                    }

                    .right_msg {
                        float: left;
                        margin-left: 10px;
                        position: relative;

                        a:nth-child(2) {
                            margin-right: 10px;
                        }

                        a:nth-child(4) {
                            margin-left: 10px;

                        }

                        .line {
                            position: absolute;
                            left: 35px;
                            top: 20px;
                            width: 2px;
                            height: 10px;
                            background-color: rgb(16, 15, 15);
                        }
                    }
                }

                //新人福利
                .bot_showMsg {
                    margin-top: 10px;

                    span {
                        width: 64px;
                        height: 22px;
                        float: left;
                        text-align: center;
                        line-height: 22px;
                        background-color: #DD302D;
                        color: #fff;
                        border-radius: 10px;

                        &:last-child {
                            margin-left: 10px;
                            background-color: #363634;
                            color: #beb482;
                        }

                    }
                }
            }

            //御码快报
            .yumakuaibao {
                margin: 0px auto 0;
                width: 170px;
                height: 126px;
                padding: 10px;

                .yumakuaibao_top {
                    &:nth-child(1) {
                        color: #000000;
                        font-weight: bold;
                        font-size: 16px;
                        line-height: 14px;
                    }

                    &:nth-child(2) {
                        font-size: 12px;
                        line-height: 14px;
                    }
                }

                .reping {
                    ul {
                        li {
                            width: 170px;
                            height: 22px;
                            margin-top: 10px;
                            clear: both;

                            .hot_words {
                                width: 44px;
                                height: 22px;
                                background-color: #FFE7E7;
                                color: #DD302D;
                                font-weight: bold;
                                text-align: center;
                                line-height: 22px;

                                span {
                                    width: 44px;
                                    height: 22px;
                                    background-color: #FFE7E7;
                                    color: #DD302D;
                                    font-size: 12px;
                                    text-align: center;
                                    line-height: 22px;

                                }

                            }

                            p {
                                line-height: 22px;
                            }

                            .ellipsis {
                                width: 120px;
                                white-space: nowrap;
                                overflow: hidden;
                                text-overflow: ellipsis;

                            }
                        }
                    }
                }
            }

            //精灵图
            .icon_list {
                margin-top: 10px;
                width: 170px;
                height: 47px;
                padding-left: 10px;

                ul {
                    li {
                        margin-left: 10px;
                        margin-top: 10px;
                        height: 52px;
                        // padding-top: 10px;

                        .tu1 {
                            width: 30px;
                            height: 30px;
                            background: url(../img/侧边栏图标_默认@1x.png);
                            padding-top: 30px;
                            box-sizing: border-box;
                            margin-right: 10px;
                            margin-top: 13px;

                            &:hover {
                                background: url(../img/侧边栏图标_hover@1x.png);
                                // background-position: ;

                            }
                        }

                        .tu2 {
                            width: 30px;
                            height: 30px;
                            background: url(../img/侧边栏图标_默认@1x.png);
                            background-position: 28px 0;
                            padding-top: 30px;
                            box-sizing: border-box;
                            margin-right: 10px;
                            margin-top: 13px;

                            &:hover {
                                background: url(../img/侧边栏图标_hover@1x.png);
                                background-position: 28px 0;

                            }
                        }

                        .tu3 {
                            width: 30px;
                            height: 30px;
                            background: url(../img/侧边栏图标_默认@1x.png);
                            background-position: 65px 0;
                            padding-top: 30px;
                            box-sizing: border-box;
                            margin-right: 10px;
                            margin-top: 13px;
                            display: block;

                            // margin-top: 10px;
                            &:hover {
                                background: url(../img/侧边栏图标_hover@1x.png);
                                background-position: 65px 0;

                            }
                        }

                        .tu4 {
                            width: 30px;
                            height: 30px;
                            background: url(../img/侧边栏图标_默认@1x.png);
                            background-position: 104px 0;
                            padding-top: 30px;
                            box-sizing: border-box;
                            margin-right: 10px;
                            margin-top: 13px;

                            // margin-top: 10px;
                            &:hover {
                                background: url(../img/侧边栏图标_hover@1x.png);
                                background-position: 104px 0;

                            }
                        }

                        .last-child {
                            margin-right: 0px;
                        }
                    }
                }
            }
        }
    }

    //秒杀区域
    .miaosha {
        background-color: #fff;
        height: 266px;
        margin: 15px 0;

        //左侧背景图
        .left_title {
            width: 190px;
            height: 266px;
            background: url(../img/Rectangle31@1x.png);

        }

        //中间4张图片
        .middle_img_show {
            padding-left: 10px;

            .item {
                width: 190px;
                height: 266px;
                float: left;
                text-align: center;
                background-color: #fff;
                padding-top: 20px;
                box-sizing: border-box;
                margin-right: 10px;

                p:nth-child(2) {
                    width: 160px;
                    height: 18px;
                    margin: 20px auto 10px;
                    //超出部分隐藏，并显示省略号
                    overflow: hidden;
                    word-break: keep-all;
                    text-overflow: ellipsis;
                    font-size: 14px;
                }

                p:last-child {
                    font-size: 14px;
                    color: #dd302d;

                }
            }

            // .item:last-child{
            //     margin-right: 0;
            // }
            .item:hover {
                border: 1px solid #ccc;
                box-sizing: border-box;
            }

        }

        //右侧二维码图片
        .QR_Code {}



    }


}

//办年货，购年礼
.year_gift {
    width: 1270px;
    height: 555px;
    margin: 0 auto;
    background: url(../img/年货推荐_背景@1x.png) no-repeat;

    // position: relative;
    .list {
        padding: 110px 40px 0;

        .item {
            width: 190px;
            height: 210px;
            background: url(../img/年货产品背景框框@1x.png) no-repeat;
            text-align: center;
            float: left;
            margin-right: 10px;
            margin-top: 10px;

            &:nth-child(6n) {
                margin-right: 0px;

            }

            p:nth-child(2) {
                width: 190px;
                height: 32px;
                line-height: 32px;
                background: url(../img/年货产品_免息横幅@1x.png) no-repeat;
                color: #fff;
                margin-bottom: 10px;
                margin-top: 10px;
            }

            p:last-child {
                color: #DD302D;
                font-weight: 700;
                font-size: 18px;
                font-size: 14px;
            }

            a img {
                margin: 10px;
            }

        }


    }




}

//底部
.bottom {


    //每日特价区
    .daily_price {
        margin-top: 10px;


        .daily_price_box {
            width: 590px;
            height: 318px;
            background-color: #FFFFFF;
            box-sizing: border-box;
            padding: 10px 10px 0;

            // margin-right: 10px;
            :last-child {
                margin-right: 0;
            }



            //标题部分
            .title {
                margin-bottom: 10px;

                span:nth-child(1) {
                    width: 570px;
                    height: 34px;
                    font-size: 24px;
                    font-weight: 700;
                    color: #000000;

                }

                span:nth-child(2) {
                    font-size: 14px;
                    color: #DD302D;
                    margin-top: 5px;

                }



            }

            //左侧图片
            .content_item_left {
                width: 180px;
                height: 254px;
                background-color: #F8F8F8;
                // background-color: #2fce71;
                text-align: center;

                h4 {
                    width: 118px;
                    height: 32px;
                    background-color: rgb(246, 183, 61);
                    text-align: center;
                    line-height: 32px;
                    color: #fff;
                }

                img {
                    margin: 10px auto;

                }

                p:nth-child(3) {
                    font-size: 14px;
                    color: #000000;
                    font-weight: 700;

                }

                p:nth-child(4) {
                    font-size: 12px;
                    color: #DD302D;
                    font-weight: 700;
                    margin: 10px 0;
                }

                p:nth-child(5) {
                    font-size: 14px;
                    color: #000000;
                    font-weight: 700;

                }
            }
        }
    }

    //右侧图片一堆
    .content_item_right {
        width: 390px;
        height: 254px;
        padding-top: 32px;
        box-sizing: border-box;

        .public_item {
            width: 190px;
            height: 90px;
            // background-color: pink;
            margin-bottom: 20px;
            margin-left: 5px;
            ;
            float: left;


            img {
                float: left;
            }

            .right_item_text {
                float: left;
                width: 90px;
                margin-left: 5px;
                // padding-left:5px;
                box-sizing: border-box;

                p {
                    font-size: 14px;
                    font-weight: 700;
                }

                p:nth-child(2) {
                    color: #DD302D;
                    margin: 5px 0;
                }

                p:nth-child(3) {
                    font-size: 12px;
                    color: #CCCCCC;

                }
            }

            .public_item:nth-child(2n) {
                margin-left: 10px;

            }
        }
    }

    //全球购
    .global_buy {
        .title {
            height: 60px;
            line-height: 60px;
            text-align: center;
            font-size: 28px;
            color: #000000;
            font-weight: 700;
        }

        .public_items {
            margin-right: 10px;
            width: 290px;
            height: 560px;

            // background-color: pink;
            :nth-child(2) {
                margin-top: 10px;
            }

        }

        .img_show {
            margin-bottom: 10px;
            padding-left: 10px;
            background-color: #fff;
            height: 180px;
            width: 290px;
            float: left;
            box-sizing: border-box;

            h4 {
                padding: 10px 0;

                span:nth-child(1) {
                    font-size: 14px;
                    color: #000000
                }
            }

            img:nth-child(2) {
                margin-right: 10px;
            }

        }

        .right_items_content {
            // background-color: pink;
            width: 590px;
            height: 560px;

            .img_show {
                padding-right: 0;
                box-sizing: border-box;

            }

            .img_show:nth-child(2n+1) {
                margin-right: 10px;
            }
        }
    }

    //为你推荐
    .tuijian {

        //
        .title {
            height: 60px;
            line-height: 60px;
            text-align: center;
            font-size: 28px;
            color: #000000;
            font-weight: 700;
        }

        //标题导航栏
        .biaotilan {
            width: 1190px;
            height: 80px;
            background-color: #fff;
            padding-left: 55px;
            box-sizing: border-box;

            .biaotilan_item {
                float: left;
                width: 180px;
                height: 80px;
                font-size: 14px;
                text-align: center;
                margin-top: 20px;

                a {
                    strong {
                        display: inline-block;
                        width: 68px;
                        height: 20px;
                        border-radius: 10px;
                        font-size: 14px;
                        // border: 1px solid #ccc;

                        p {
                            color: #ccc;
                        }

                    }
                    &:hover strong {
                        
                            background-color: #DD302D;
                            color: #fff;                       
                    }
                    &:hover p {
                            color: #DD302D;
                    }

                    
                }
            }

        }

        //图片盒子区
        .content {
            .item {
                width: 230px;
                height: 322px;
                background-color: #fff;
                float: left;
                margin-right: 10px;
                margin-bottom: 10px;
                text-align: center;

                &:nth-child(5n) {
                    margin-right: 0;
                }

                img {
                    margin-top: 40px;
                    margin-bottom: 20px;
                }

                h4 {
                    width: 190px;
                    margin: 15px auto;
                    text-align: left;

                    :nth-child(1) {
                        font-weight: 700;
                        background: #DD302D;
                        color: #fff;
                    }
                }

                p {
                    width: 190px;
                    margin: 15px auto;
                    text-align: left;
                }




                p:last-child {
                    font-size: 18px;
                    color: #DD302D;
                    font-weight: 700;
                }

            }

        }
    }

    //为你推荐

}

//底部



//底部区域
.footer {

    height: 482px;
    background-color: #483E3E;

    .footer_top {
        img {
            margin-top: 10px;
            float: left;

        }

        img:last-child {
            margin-right: 0;
        }
    }

    .footer_content{
        float: left;
        box-sizing: border-box;
        dl {
            float: left;
            width: 190px;
            height: 200px;
            margin-right: 10px;
        }

        dt {
            font-size: 18px;
            margin-bottom: 10px;
            color: #fff;
        }

        dd {
            margin-bottom: 5px;
            color: #fff;
        }
        :nth-child(6) {
            margin-right: 0;
            line-height: 25px;
        }
    }

    .footer_bottom{
        width: 1190px;
        border-top: 2px solid #fff;
        padding: 0 100px;
        float: left;
        box-sizing: border-box;

        ul {
            padding-top: 20px;

            li {
                float: left;
                width: 90px;
                height: 24px;
                text-align: center;
                line-height: 24px;
                margin-right: 10px;
                color: #fff;
                box-sizing: border-box;
                &:nth-child(10){
                    margin-right: 0;
                }

            }
        }

    }
    .footer_bottom_text{
        width: 190PX;
        height: 24px;
        text-align: center;
        color: white;
        margin-top: 20px;
        padding: 0 500px;
    }
}


//固定定位的悬浮按钮
.fixed_btn {
    position: fixed;
    background-color: #fff;
    border: 1px solid #ccc;
    top: 25%;
    right: 0;
    width: 50px;
    padding: 0; // 移除内边距，确保子元素可以垂直居中
    ul {
        li {
            // border: 1px solid #ccc;
            margin:  0; // 添加间距

            a {
                display: block;
                font-size: 14px;
                width: 50px;
                height: 80px;
                line-height: 60px;
                padding: 0;
                margin: 0;
                text-align: center; // 文本居中

                span.iconfont {
                    font-size: 40px;
                    color: #ccc;
                    display: block;
                }

                p {
                    font-size: 14px;
                    margin: -20px 0;
                    padding: 0;
                    height: 20px;
                }
            }
            :hover{
                background-color: #DD302D;
                color: white;
               
            }
        }
    }
}